const lmxformat = require("./lmxformat-tools/index");

const dtStr = lmxformat.dateFormat(new Date());

const htmlStr =
  "<h1 title='abc'>this is h1 label<span>this is span&nbsp;</span></h1>";
const str1 = lmxformat.HTMLEscape(htmlStr);

const unhtmlStr =
  "&lt;h1 title='abc'&gt;this is h1 label&lt;span&gt;this is span&lt;/span&gt;&lt;/h1&gt;";
const str2 = lmxformat.HTMLUNEscape(unhtmlStr);

console.log(dtStr);
console.log(str1);
console.log(str2);
